package org.dce.screencapturer.objects;

import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;

import org.dce.screencapturer.actions.drawing.InsertObjectAction;
import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class EmptyBox extends RegularShapeObject {

	public static final class InsertAction extends InsertObjectAction {
		public InsertAction(){
			super("actions.emptyBox",IconFactory.getIcon("/images/empty-box.png"), null,EmptyBox.class);
		}
	};

	public EmptyBox(){
		getFillAttributes().setEnabled(false);
	}
	
	@Override
	protected boolean supportsFill() {
		return false;
	}

	@Override
	protected Shape getShape() {
		
		Rectangle bounds = getDotsBounds();
		
		return new Rectangle2D.Float(
			bounds.x,
			bounds.y,
			bounds.width,
			bounds.height);
	}

}
